package com.exam.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.exam.entity.Consult;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @Description:
 * @Company：
 * @Author:
 * @Date: 2022/4/29 21:48
 * @Version 1.0
 */
@Mapper
public interface ConsultMapper {

    Integer add(Consult consult);

    IPage<Consult> findAll(@Param("page") Page page,@Param("userId") Integer userId,@Param("teacherName") String teacherName,@Param("userName") String userName);

    Consult getById(@Param("id") Integer id);

    Integer update(Consult consult);
}
